/*
 * @Description: 
 * @Version: 2.0
 * @Author: 
 * @Date: 2022-04-01 11:17:49
 * @LastEditors: cxc
 * @LastEditTime: 2022-04-01 11:50:17
 */
import React from 'react'
import { Row, Col, Modal, Input } from 'antd';

export default function DepartModal(props) {
  const { title, visible, onOk, onCancel, inputRef, conTitle, inputName } = props
  return (
    <>
      {/* 对话框 */}
      {/* 新增部门 */}
      <Modal className='dep_add_modal'
        destroyOnClose='true'
        cancelText='关闭'
        okText='保存'
        centered='true'
        title={title}
        visible={visible}
        onOk={onOk}
        onCancel={onCancel} >
        <Row className='modal_con_title'>{conTitle}</Row>
        <Row className='modal_con_con'>
          <Col span={6} className='modal_con_con_item_title'><span >{inputName}</span></Col>
          <Col span={15}> <Input ref={inputRef} /></Col>
        </Row>
      </Modal>
    </>
  )
}

